<template>
	<view>
	
	<view id="user_data">	
	    <ul class="basic">		
	        <li>			
	          <a class="data" href="name.html">
	              <text>用户真实姓名</text>
				  <p>{{info.name}}</p>              
	              <view class="clear"></view>
	          </a>
	        </li>
	        <li>
	            <a class="data" href="sex.html">
	                <text>用户性别</text>
	                <p>{{info.sex}}</p>			
	                <view class="clear"></view>
	            </a>
	        </li>
			<li>
	            <a class="data" href="pname.html">
	                <text>紧急联系人姓名</text>
	                <p>{{info.pname}}</p>
	                <view class="clear"></view>
	            </a>
	        </li>
			<li>
			    <a class="data" href="pname.html">
			        <text>紧急联系人性别</text>
			        <p>{{info.psex}}</p>
			        <view class="clear"></view>
			    </a>
			</li>
			<li>
			    <a class="data" href="pname.html">
			        <text>紧急联系人手机号</text>
			        <p>{{info.pphone}}</p>
			        <view class="clear"></view>
			    </a>
			</li>
			<li>
			    <a class="data" href="pname.html">
			        <text>紧急联系人住址</text>
			        <p>{{info.paddress}}</p>
			        <view class="clear"></view>
			    </a>
			</li>
	    </ul>
	</view>
	</view>
</template>

<script>
	import config from '@/config'
	export default {
	data() {
		return {
			uni,
			info:{
			}
		}
	},
	onLoad() {
		var that = this;
		 uni.request({
		 	url: `${config.baseUrl}/sos/getsos?token=` + uni.getStorageSync('token'),
		 	method: 'GET',
		 	success(r) {
		 		if (r.data.succ) {
		 			that.info = r.data.data;
		 		}
		 	}
		 });
		
	}
}
</script>

<style>

</style>
